home *** CD-ROM | disk | FTP | other *** search
/ Utilities Professional 1-1500 / Utilities Professional 1-1500 (1994)(WPD)[!].iso / 12511500 / var1286.dms / var1286.adf / printers / IBMColorJet / ANSIecho.doc < prev    next >
Text File  |  1992-09-02  |  2KB  |  50 lines

  1. This is a replacement for the AmigaDOS echo CLI command. It should be
  2. upwardly compatible with the original, with one exception:
  3.  
  4. AmigaDOS echo, when presented with a '?', will print out a colon as a null
  5. help prompt. This version will just echo the question mark.
  6.  
  7. The ANSI X3.64 codes used by the console driver are supported, and a means
  8. of suppressing the final newline has been supplied. In a manner similar to
  9. that of the UNIX(tm) echo command, a backslash is used to introduce special
  10. sequences.
  11.  
  12. The following backslash constructs are supported:
  13.          \t    tab
  14.          \n    newline
  15.          \f    formfeed (clear screen)
  16.          \e    escape character
  17.          \c    on end of string, suppresses newline
  18.          \b    backspace
  19.          \\    single backslash
  20.          \"    explicit string quote, otherwise eaten.
  21.          \nn   hexadecimal character (must be upper case to avoid
  22.                ambiguity).
  23.  
  24. As an example, try ansiecho \e[37mhello world\e[0m. Note that the arguments
  25. to echo must be quoted if you want to emit an embedded semi-colon e.g.
  26.  
  27.                echo "this;that"
  28.  
  29. or the CLI will treat everything after the semicolon as a comment.
  30.  
  31. Note that the \nn sequence is in hex, rather than the octal of the UNIX(tm)
  32. echo command. I chose that representation because that's how the console
  33. documentation is written. Besides, I don't like octal!
  34.  
  35. For an example of the capabilities of this CLI command, execute the
  36. supplied ansiecho.demo. You'll need a full-size CLI window.
  37.  
  38. This command is distributed as "ansiecho" in order to avoid confusion. Feel
  39. free to rename it as echo if it  meets your needs.
  40.  
  41.                         Enjoy!
  42.  
  43. Perpetrator: Dewi Williams  ..!ihnp4!druca!dewi
  44.              Unconditionally placed in the public domain.
  45.  
  46. Legal gobbledegook:
  47.         UNIX is a trademark of AT&T Bell Laboratories.
  48.         AmigaDOS is presumably a trademark of Commodore-Amiga Inc.
  49.